package com.chaosyeb.server.controller;

import com.chaosyeb.server.pojo.RespBean;
import com.chaosyeb.server.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description : 在线聊天
 * @Author : Chaos
 * @Date : 2022/2/27 22:37
 * @Version : 1.0
 **/
@RestController
@RequestMapping("/chat")
public class ChatController {

    @Autowired
    private IAdminService adminService;

    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public RespBean getAllAdmins(String keyword){
        return adminService.getAllAdmins(keyword);
    }
}
